package top.kaoshanji.p1ch03c;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * 代码清单-p1ch03c-01：使用@Value注解的配置类
 * @author kaoshanji
 * ^_^
 * create time 2025/4/23 11:13
 */
@Configuration
@ComponentScan
@PropertySource("classpath:app.properties")
public class BlankDiscValueConfig {

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }

}
